import { request } from '@/utils/request'
// 查询景区管理列表
export const getScenicList = (params) =>
  request('app/scenic/list', 'GET', params)
// 查询门票管理列表
export const getTicketList = (params) =>
  request('app/ticket/list', 'GET', params)
// 获取景区管理详细信息
export const getScenicById = (params) =>
  request('app/scenic/' + params, 'GET')
// 查询节假日
export const getPhList = (params) =>
  request('app/ph/list', 'GET', params)
// 查询景区管理列表
export const getAcitivityList = (params) =>
  request('app/activity/list', 'GET', params)
// 获取景区管理详细信息
export const getActivityById = (id) =>
  request('app/activity/getInfo?id=' + id, 'GET')
// 预支付订单
export const getpreOrder = (data) =>
  // request('pay/cashier/JsPay', 'POST', data)
  request('/pay/onlinePay', 'POST', data)
// 查询待领取卡券列表
export const getVoucherUnReceiveList = (params) =>
  request('app/voucher/unReceive', 'GET', params)
// 领取卡券
export const getReceiveVoucher = (data) =>
  request('app/voucher/receive', 'POST', data)
// 卡券列表
export const getVoucherList = (params) =>
  request('app/voucher/list', 'GET', params)

// 新增收藏
export const addcollect = (data) =>
  request('app/collect', 'POST', data)
// 删除收藏
export const delcollect = (data) =>
  request('app/collect/cancel', 'POST', data)
// 查询收藏
export const getcollectById = (params) =>
  request('app/collect/' + params, 'GET')
// 我的收藏列表
export const getcollectList = (params) =>
  request('app/collect/list', 'GET', params)
// 新增商户管理
export const addmerchant = (data) =>
  request('app/merchant', 'PUT', data)
// 查看商户管理详情信息
export const getmerchant = () =>
  request('app/merchant', 'GET')

// 查询订单明细列表
export const getOrderList = (params) =>
  request('app/order/list', 'GET', params)

// 订单明细详情信息
export const getOrderById = (params) =>
  request('app/order/' + params, 'GET')

// 取消订单
export const cancelOrder = (data) =>
  request('app/order/cancelOrder', 'POST', data)
// 删除订单
export const delOrder = (params) =>
  request('app/order/' + params, 'delete')

// 退款订单
export const refundOrder = (data) =>
  request('app/order/refundOrder', 'POST', data)